<?php /* Smarty version 2.6.18, created on 2010-05-18 15:53:03
         compiled from admin/article/mod.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'admin/article/mod.tpl', 26, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "admin/public/header.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
		<div id="main">
		  	<div class="head-dark-box">
				<div class="tit">后台管理->文章管理->修改文章</div>
			</div>	
			<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "admin/public/title.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
		    <form name="article" method="post" action="admin.php?m=article&a=update">
			<div class="msg-box">
				<ul class="viewmess">
					<input type="hidden" name="id" value="<?php echo $this->_tpl_vars['post']['id']; ?>
">
					<li class="light-row">
						<span class="col_width">文章类别</span>
						  <?php echo $this->_tpl_vars['colSelect']; ?>
 
					</li>
					<li class="dark-row">
						<span class="col_width">文章标题&nbsp;<span class="red_font">*</span></span>
						<input type="text" class="text-box" name="title" size="30" value="<?php echo $this->_tpl_vars['post']['title']; ?>
" maxlength="40">
					</li>

					<li class="light-row">
						<span class="col_width" style="margin-top:25px">文章摘要</span>
						<textarea class="text-box" name="summary" cols="40" rows="4"><?php echo $this->_tpl_vars['post']['summary']; ?>
</textarea>&nbsp;&nbsp;小于100个汉字.
					</li>
					<li class="dark-row">
						<span class="col_width">发布时间&nbsp;<span class="red_font">*</span></span>
						<input type="text" class="text-box" name="postTime" size="30" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['postTime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d %H:%M:%S") : smarty_modifier_date_format($_tmp, "%Y-%m-%d %H:%M:%S")); ?>
">&nbsp;&nbsp;如自己更改请注意格式.
					</li>
					<li class="light-row">
						<span class="col_width">文章作者&nbsp;<span class="red_font">*</span></span>
						<input type="text" class="text-box" name="author" size="15" value="<?php echo $this->_tpl_vars['post']['author']; ?>
" maxlength="20">
					</li>
					<li class="dark-row">
						<span class="col_width">文章来源</span>
						<input type="text" class="text-box" name="comeFrom" size="25" value="<?php echo $this->_tpl_vars['post']['comeFrom']; ?>
" maxlength="25">
					</li>
					<li class="light-row">
						<span class="col_width">关键字&nbsp;&nbsp;&nbsp;<span class="red_font">*</span></span>
						<input type="text" class="text-box" name="keyword" size="25" value="<?php echo $this->_tpl_vars['post']['keyword']; ?>
" maxlength="20">&nbsp;&nbsp;用于文章搜索,多个请用逗号","隔开.
					</li>
					<li class="dark-row">
						<span class="col_width">是否推荐</span>
						<input type="radio" onclick="setPlay('play',1)" name="recommend" <?php echo $this->_tpl_vars['recommend']; ?>
  value="1"> 推荐
						<input type="radio" onclick="setPlay('play',0)" name="recommend" <?php echo $this->_tpl_vars['no_recommend']; ?>
 value="0"> 不推荐
					</li>
					<li id="play" class="dark-row" style="display:<?php echo $this->_tpl_vars['dis']; ?>
">
						<span class="col_width">&nbsp;</span>
						<input type="hidden" id="picId" name="picId" value="<?php echo $this->_tpl_vars['post']['picId']; ?>
">
						<?php if ($this->_tpl_vars['post']['picName']): ?>
							<img  style="cursor:pointer;"  onclick="showWin('admin.php?m=image&a=open')"  src="<?php echo $this->_tpl_vars['picpath']; ?>
<?php echo $this->_tpl_vars['post']['picName']; ?>
" alt="图片预览" width=100 height="100" id="pic">
						<?php else: ?>
							<img  style="cursor:pointer;"  onclick="showWin('admin.php?m=image&a=open')"  src="public/images/admin/no_image.gif" alt="图片预览" width=100 height="100" id="pic">	
						<?php endif; ?>		
			 &nbsp;&nbsp; 单击图片可以选择或更改一个图片作为首页的幻灯播放，可以不设置
				
					</li>
					<li style="margin:0px; padding:0px">
						<?php echo $this->_tpl_vars['FCKeditor']; ?>

					</li>
	
					<li class="dark-row">
						<span class="col_width">&nbsp;  </span>
						<input type="submit" class="button"  value="修 改">&nbsp;&nbsp;
						<input type="reset" class="button" value="重 置">
					</li>
				</ul>	
			</div>
                    </form>	
		</div>
<div id="timer">
	<p><span class="exetime">当前脚本执行用时</span><span class="red_font"><?php echo $this->_tpl_vars['timer']; ?>
</span>秒&nbsp;</p>	
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "admin/public/footer.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>	

